package com.rent.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2025-03-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("menu")
@ApiModel(value = "Menu对象", description = "Menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("菜单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("标签")
    @TableField("label")
    private String label;

    @ApiModelProperty("标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("菜单级别0无下级 1有下级")
    @TableField("level")
    private Integer level;

    @ApiModelProperty("父ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("菜单页面连接")
    @TableField("url")
    private String url;

    @ApiModelProperty("菜单图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("是否启用")
    @TableField("isvalid")
    private Boolean isvalid;

    @ApiModelProperty("显示状态0.不显示1.显示")
    @TableField("show_status")
    private Integer showStatus;

    @ApiModelProperty("菜单描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("创建日期")
    @TableField("create_time")
    private Date createTime;
}
